package com.yang.service;

import com.yang.dao.UserDao;
import com.yang.entity.User;

public class UserService {

	private UserDao ud=new UserDao();
	public User findByNameAndPassword(String name, String password) {
		return ud.findByNameAndPassword(name,password);
	}
	public User insertByNameAndPassword(String id, String name, String password) {
		return ud.insertByNameAndPassword(id,name, password);
	}

}
